{% include "../public/min-header.html" %}
<div class="wrapper">
    {% include "../public/breadcrumb.html" %}
    <section class="content">
    <!--<div class="container-fluid">-->
    <div class="row">
      <div class="col-sm-12">
        <div class="panel panel-default">
        	<div class="pull-right">
            		<a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
            </div>
            <div class="panel-heading">
                <h3 class="panel-title">
                	<i class="fa fa-list"></i> 用户信息
                </h3>
            </div>
            <div class="panel-body">
                <form method="post" id="submitForm">
                    <table class="table table-bordered">
                    <tbody>
                	<tr>
                        <td>用户ID:</td>
                        <td>{{info.id}}</td>
                    </tr>
                    <tr>
                        <td>用户名:</td>
                        <td>{{info.username}}</td>
                    </tr>
                    <tr>
                        <td>积分:</td>
                        <td>{{info.credit}}</td>
                    </tr>
                    <tr>
                        <td>手机号码:</td>
                        <td>{{info.mobile}}</td>
                    </tr>
                    <tr>
                        <td>qq:</td>
                        <td>{{info.qq}}</td>
                    </tr>
                    <tr>
                        <td>姓名:</td>
                        <td>{{info.realname}}</td>
                    </tr>
                    <tr>
                        <td>最后登录时间:</td>
                        <td>{{helper.time_to_date(info.login_time,5)}}</td>
                    </tr>
                    <tr>
                        <td>注册时间:</td>
                        <td>{{helper.time_to_date(info.create_time,5)}}</td>
                    </tr>
                    <tr>
                        <td>状态:</td>
                        <td id="status">
                            {{'正常' if info.status else '冻结'}}
                        </td>
                    </tr>
                    </tbody>
                </table>
                </form>
            </div>
        </div>
 	  </div> 
    </div>    <!-- /.content -->
   </section>
</div>
<script>
    function preview(id){
        layer.open({
            type: 1,
            title: false,
            closeBtn: false,
            area: ['500px', '500px'],
            skin: 'layui-layer-nobg', //没有背景色
            shadeClose: true,
            content: "<img width='500' height='500' src='"+$('#'+id).val()+"'>"
        });
    }
</script>
{% include "../public/main-footer.html" %}